﻿namespace EFMLEditor
{
    using System.Windows.Forms;

    using EFMLEditor.Internal;

    public partial class MoreInfos : Form
    {
        public MoreInfos()
        {
            this.InitializeComponent();

            this.textBox1.Text = Project.Get("application_author");
            this.textBox2.Text = Project.Get("application_description");
            this.textBox3.Text = Project.Get("application_version");
            this.textBox4.Text = Project.Get("application_website");
            this.textBox5.Text = Project.Get("application_copyright");
        }

        private void button1_Click(object sender, System.EventArgs e)
        {
            Project.Add("application_author", textBox1.Text);
            Project.Add("application_description", textBox2.Text);
            Project.Add("application_version", textBox3.Text);
            Project.Add("application_website", textBox4.Text);
            Project.Add("application_copyright", textBox5.Text);

            Application.isDirty = true;

            this.Close();
        }

        private void textBox1_TextChanged(object sender, System.EventArgs e)
        {

        }
    }
}